<?php
/* @var $this SlidehomeController */
/* @var $model Slidehome */

?>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'slidehome-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
        array(
            'header'=>'No.',
            'value'=>'$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
        ),
        array(
            'header'=>'Image',
            'type' => 'raw',
            'value'=>'l(img(bu()."/img/slidehome/".$data->id.".jpg","",array("width"=>"512px","height"=>"384px")),
            url("/backend/slidehome/update/".$data->id))',
        ),
	),
)); ?>
